package com.jiawei.config;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author : willian fu
 * @date : 2019/12/11
 * 忽略登录权限配置类
 */
public class LoginIgnore {

    private static List<String> ignoreUrl = Collections.synchronizedList(new ArrayList<>());

    public static List<String> getIgnoreUrl() {
        return ignoreUrl;
    }

    /**
     * 添加登录权限忽略
     * @param url
     */
    public static void addIgnoreURL(String ...url){
        for (String u : url) {
            ignoreUrl.add(u);
        }
    }
}
